package com.jnu.hospitalexamination.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jnu.hospitalexamination.entity.Cireport;
import com.jnu.hospitalexamination.entity.vo.CireportVO;
import com.jnu.hospitalexamination.entity.vo.ReportitemVO;
import com.jnu.hospitalexamination.service.CireportService;
import com.jnu.hospitalexamination.mapper.CireportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Nowonder
* @description 针对表【cireport】的数据库操作Service实现
* @createDate 2024-07-21 20:13:39
*/
@Service
public class CireportServiceImpl extends ServiceImpl<CireportMapper, Cireport>
    implements CireportService{
    @Autowired
    private CireportMapper cireportMapper;
    // 获取某用户所有体检报告
    @Override
    public List<ReportitemVO> getReportlist(Integer userid){
        return cireportMapper.selectbyuserid(userid);
    }

    @Override
    public List<CireportVO> SelectByOrderId(int orderId) {
        return cireportMapper.SelectByOrderId(orderId);
    }
}




